package de.szut.dqi12.sqlitebrowser.model;

/**
 * Table
 * Contains the data of one table
 * @author Alexander
 *
 */

public class Table {

	private String[][] content;
	private String[] columnNames;
	private String tableName;
	private int rowNumber;
	
	/**
	 * Constructor of the table class
	 * @param rowNumber - ammount of rows in this table
	 * @param tableName - name of this table
	 * @param columnNames - name of the columns
	 * @param content - content of the table
	 */
	
	public Table(int rowNumber, String tableName, String[] columnNames, String[][] content) {
		this.content = content;
		this.columnNames = columnNames;
		this.tableName = tableName;		
		this.rowNumber = rowNumber;
	}
	
	/**
	 * Getter and Setter for the attributes
	 * rowNumber
	 * tableName
	 * columnNames
	 * content
	 */
	
	public void setContent(String[][] content) {
		this.content = content;
	}
	
	public String[][] getContent() {
		return content;
	}
	
	public void setColumnNames(String[] columnNames) {
		this.columnNames = columnNames;
	}
	
	public String[] getColumnNames() {
		return columnNames;
	}
	
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public String getTableName() {
		return tableName;
	}

	public void setRowNumber(int rowNumber) {
		this.rowNumber = rowNumber;
	}

	public int getRowNumber() {
		return rowNumber;
	}
	
}
